package com.itheima.zhujie.demo3;

import java.lang.reflect.Method;

public class Demo {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        Class clazz = Class.forName("com.itheima.zhujie.demo3.Demo1");
        Demo1 demo1 = (Demo1) clazz.newInstance();
        Method[] declaredMethods = clazz.getDeclaredMethods();
        for (Method declaredMethod : declaredMethods) {
            declaredMethod.setAccessible(true);
            //if (declaredMethod.isAnnotationPresent(test))

        }
    }
}
